package com.example.myfirstapp;


import com.wikitude.architect.ArchitectView;
import com.wikitude.architect.ArchitectView.ArchitectConfig;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.View;
import android.widget.EditText;
//import android.widget.TextView;
//import android.widget.TextView;


public class MainActivity extends  Activity{

	public final static String EXTRA_MESSAGE="com.example.myfirstapp.MESSAGE";
	private ArchitectView architectview;
	
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        
        
        
    }


    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        // Inflate the menu; this adds items to the action bar if it is present.
        getMenuInflater().inflate(R.menu.main, menu);
        return true;
    }
    
    //se llama cuando se hace click en boton
    public void sendMessage(View view){
    	//Intent intent = new Intent(this , DisplayMessageActivity.class);
    	EditText editText=(EditText) findViewById(R.id.edit_message);
    	String message =editText.getText().toString();
    	//intent.putExtra(EXTRA_MESSAGE, message);//toma nombre clave
    											// y valor
    	
    	//startActivity(intent); //se crea instaciacion de activuty
    	//con el intent
    	
    	EditText editText1=(EditText) findViewById(R.id.editText1);
    	editText1.setText(message);
    	
    	
    	
    	
    	
    }
    
    public void borrar(View view){
    	Intent intent =new Intent(this , Augmented.class);
    	
    	startActivity(intent);
    }
    
}
